package com.mh;

public class Dog extends Animal {
    @Override
    public void makeSound() {
        System.out.println("The dog barks");
    }

    public static void main(String[] args) {
        // 创建Dog对象
        Dog dog = new Dog();

        // 调用重写的makeSound方法
        dog.makeSound();
    }
}
